<template>
  <el-form-item class="item-c" v-iedit v-icanva :required="value.data.attribute.required" :label="value.data.attribute.label">
    <component :is="dragdrop.components" v-model="value.slot[i]" v-for="(dragdrop,i) in value.slot" :key="i"></component>
  </el-form-item>
</template>
<script type="text/javascript">

export default {
  props: {
    value: {
      type: [Array, Object]
    }
  },
  data() {
    return {

    }
  },
  /**
   * 计算属性
   * @type {Object}
   */
  computed: {

  },
  /**
   * 页面加载执行
   * @return {[type]} [description]
   */
  mounted() {

  },
}

</script>
<style type="text/css" lang="scss">
.item-c {
  background-color: white;
  border:dashed 1px #dfdfdf;
  position: relative;
  padding:2px 0 2px 5px;
}

</style>
